// 第三方的promise风格的http库
import axios from "./axios";

//请求示例
//get
export const get = (url,data) => {
  return axios({
    url: url,
    method: "get",
    data,
    config: {
      headers: {
        "Request-Type": "wechat",
      },
      timeout: 10000000,
    },
  });
};
//post
export const post = (url,data) => {
  return axios({
    url: url,
    method: "post",
    data,
    config: {
      headers: {
        "Request-Type": "wechat",
      },
      timeout: 10000,
    },
  });
};

